<%@ page contentType="text/html; charset=utf-8" language="java"    pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Home</title>
		<link href="style/thickbox.css" media="screen" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/thickbox.js"></script>
		<script type="text/javascript">
		
		function refresh(obj) {
			obj.src = "codeImage?" + Math.random();
		}
		
			function testCode(){
				var code =jQuery('#code').val();
				jQuery.post("testCode",{code:code,r:Math.random()},function(json){
					 alert(json.result);
				},"json");
			}
		
		</script>
    </head>
    <body>
    	<input type="text" id="code" name="code" />
		  <img class="code" src="codeImage" onclick="javascript:refresh(this);" />
		  <a href="javascript:testCode()">测试验证码</a>
		  
		  <input alt="#TB_inline?height=300&width=400&inlineId=myOnPageContent" title="点击弹出隐藏层" class="thickbox" type="button" value="点击弹出隐藏层" />   
			<a href="#TB_inline?height=300&width=400&inlineId=myOnPageContent" title="点击弹出隐藏层" class="thickbox" type="button">点击弹出隐藏层</a>
			<a href="buyNow?height=300&width=400&hehe=2222" title="我的标题" class="thickbox">弹出ajax返回层</a>
		  
		  
		<div id="myOnPageContent" style="display:none;">
			<p>Jquery 特效_JS代码_JS广告代码_下拉菜单代码-懒人建站 http://www.51xuediannao.com</p>
			<p>懒人建站为您提供-基于jquery特效，jquery弹出层效果，js特效代码大全，JS广告代码，导航菜单代码，下拉菜单代码和jquery焦点图片代码。</p>
			<p>
				ddddd
			</p>
		</div>
    </body>
</html>
